#pragma once
//#include "LogPage.h"
#include "DetailPage.h"
//#include "NormalPage.h"
#include "BatteryViewPage.h"
// CMainPropertySheet

class CMainPropertySheet : public CPropertySheet
{
	DECLARE_DYNAMIC(CMainPropertySheet)

public:
	CMainPropertySheet();
	CMainPropertySheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
	CMainPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
	virtual ~CMainPropertySheet();
protected:
	DECLARE_MESSAGE_MAP()
	//CLogPage logPage;
	//CDetailPage detailPage;
	CString m_strTitle;
	CButton * m_pselectBtn ;
	CButton * m_pSaveBtn ;
	CButton * m_pOpenBtn;
//	CButton * m_BtnArray[3];
//	CNormalPage normalPage;
//public:
//	CBatteryViewPage  myPage;
	int m_nCurUnitNo;
	int m_nCurChlNo;
public:
	vector<CPoint> m_vecSelectChl;

public:
	void NotifyMainDlgAddMult();
	void NotifyMainDlgInfo(BYTE byType);
	virtual BOOL OnInitDialog();
	virtual BOOL Create(CWnd* pParentWnd = NULL, DWORD dwStyle = (DWORD)-1, DWORD dwExStyle = 0);
	void SetTitle(CString title);
	afx_msg void  OnBnClickedChoose();
	afx_msg void OnBnClickedSaveFile();
	afx_msg void OnBnClickedOpenFile();
	afx_msg void OnBnClickedClearStep();
	afx_msg void OnBnOk();
	afx_msg void OnBnCancel();

	void SetCurrentChl(int nUnitNo, int nChlNo)
	{
		m_nCurChlNo = nChlNo;
		m_nCurUnitNo = nUnitNo;
	}


};


